(function() {
  var webConfig;

  webConfig = {
    /**
     * [getHeader description]
     * @param  {[type]} selectedIndex [description]
     * @return {[type]}               [description]
    */

    getHeader: function(selectedIndex) {
      var headerInfo;
      selectedIndex = selectedIndex || 0;
      headerInfo = {
        nav: [
          {
            name: '首页',
            href: '/ys'
          }, {
            name: '产品列表',
            href: '/ys/table'
          }
        ],
        selectedIndex: selectedIndex
      };
      return headerInfo;
    },
    getUserInfo: function(req) {
      var host, userInfo, _ref;
      host = 'http://' + ((_ref = req.headers) != null ? _ref.host : void 0);
      return userInfo = {
        host: host,
        paths: {
          home: '/ys',
          table: '/ys/table'
        }
      };
    }
  };

  module.exports = webConfig;

}).call(this);
